package io.nutz.nutzsite.module.exam.models;

import io.nutz.nutzsite.common.utils.excel.annotation.ExcelField;
import io.nutz.nutzsite.module.sys.models.User;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.nutz.dao.entity.annotation.*;

import java.io.Serializable;
import java.util.Date;

/**
 * 练习成绩与试卷表 exam_scores
 * 
 * @author lrw
 * @date 2020-04-08
 */
@Table("exercise_scores")
public class Scores2 implements Serializable {
	private static final long serialVersionUID = 1L;
	
			@Id
		@Column("id")
	@Comment("编号")
	private Integer id;

		/** 考试号 */
	@Column("ksid")
	@Comment("考试号")
	private String ksid;
	
	@Column("kmid")
	@Comment("科目")
	@ExcelField(title="科目")
	private Integer kmid;
	
	@ExcelField(title="考点ID")
    private String deptId;
	
	@ExcelField(title="班级")
    private String classg;
	
		/** 考号 */
	@Column("uid")
	@Comment("考号")
	@ExcelField(title="考号")
	private String uid;
	

	@ExcelField(title="姓名")
	private String userName;
	
		/** 成绩 */
	@Column("score")
	@Comment("成绩")
	@ExcelField(title="成绩")
	private Float score;
	
	@Column("sclevel")
	@Comment("成绩等级")
	@ExcelField(title="成绩等级")
	private String sclevel;

		/** 得分一 */
	@Column("score1")
	@Comment("得分一")
	private Float score1;

		/** 得分二 */
	@Column("score2")
	@Comment("得分二")
	private Float score2;

		/** 得分三 */
	@Column("score3")
	@Comment("得分三")
	private Float score3;

		/** 得分四 */
	@Column("score4")
	@Comment("得分四")
	private Float score4;

		/** 得分五 */
	@Column("score5")
	@Comment("得分五")
	private Float score5;

		/** 得分六 */
	@Column("score6")
	@Comment("得分六")
	private Float score6;

		/** 得分七 */
	@Column("score7")
	@Comment("得分七")
	private Float score7;

		/** 试卷路径 */
	@Column("paperurl")
	@Comment("试卷路径")
	private String paperurl;

		/** 试卷加密数据 */
	@Column("paperdata")
	@Comment("试卷加密数据")
	private String paperdata;

		/** 完成次数 */
	@Column("donum")
	@Comment("完成次数")
	private Integer donum;

		/** 评判时间 */
	@Column("jjtime")
	@Comment("评判时间")
	@ExcelField(title="交卷时间")
	private Date jjtime;

@One(field="uid")	
private User user;
	public void setId(Integer id) 
	{
		this.id = id;
	}

	public Integer getId() 
	{
		return id;
	}

	public void setKsid(String ksid) 
	{
		this.ksid = ksid;
	}

	public String getKsid() 
	{
		return ksid;
	}

	public Integer getKmid() {
		return kmid;
	}

	public void setKmid(Integer kmid) {
		this.kmid = kmid;
	}

	public void setUid(String uid) 
	{
		this.uid = uid;
	}

	public String getUid() 
	{
		return uid;
	}

	public void setScore(Float score) 
	{
		this.score = score;
	}

	public Float getScore() 
	{
		return score;
	}

	public String getSclevel() {
		return sclevel;
	}

	public void setSclevel(String sclevel) {
		this.sclevel = sclevel;
	}

	public void setScore1(Float score1) 
	{
		this.score1 = score1;
	}

	public Float getScore1() 
	{
		return score1;
	}

	public void setScore2(Float score2) 
	{
		this.score2 = score2;
	}

	public Float getScore2() 
	{
		return score2;
	}

	public void setScore3(Float score3) 
	{
		this.score3 = score3;
	}

	public Float getScore3() 
	{
		return score3;
	}

	public void setScore4(Float score4) 
	{
		this.score4 = score4;
	}

	public Float getScore4() 
	{
		return score4;
	}

	public void setScore5(Float score5) 
	{
		this.score5 = score5;
	}

	public Float getScore5() 
	{
		return score5;
	}

	public void setScore6(Float score6) 
	{
		this.score6 = score6;
	}

	public Float getScore6() 
	{
		return score6;
	}

	public void setScore7(Float score7) 
	{
		this.score7 = score7;
	}

	public Float getScore7() 
	{
		return score7;
	}

	public void setPaperurl(String paperurl) 
	{
		this.paperurl = paperurl;
	}

	public String getPaperurl() 
	{
		return paperurl;
	}

	public void setPaperdata(String paperdata) 
	{
		this.paperdata = paperdata;
	}

	public String getPaperdata() 
	{
		return paperdata;
	}

	public void setDonum(Integer donum) 
	{
		this.donum = donum;
	}

	public Integer getDonum() 
	{
		return donum;
	}

	public void setJjtime(Date jjtime) 
	{
		this.jjtime = jjtime;
	}

	public Date getJjtime() 
	{
		return jjtime;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getDeptId() {
		return deptId;
	}

	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}

	public String getClassg() {
		return classg;
	}

	public void setClassg(String classg) {
		this.classg = classg;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("ksid", getKsid())
            .append("uid", getUid())
            .append("score", getScore())
            .append("score1", getScore1())
            .append("score2", getScore2())
            .append("score3", getScore3())
            .append("score4", getScore4())
            .append("score5", getScore5())
            .append("score6", getScore6())
            .append("score7", getScore7())
            .append("paperurl", getPaperurl())
            .append("paperdata", getPaperdata())
            .append("donum", getDonum())
            .append("jjtime", getJjtime())
            .toString();
    }
}
